<template>
  <div class="lf_nav user_container">
    <div class="container clearfix">
      <left-nav />
      <router-view></router-view>
    </div>
  </div>
</template>

<script src="https://tajs.qq.com/stats?sId=66566068" charset=UTF-8></script>
<script>
import { mapMutations } from 'vuex'
import leftNav from './view/left-nav.vue'
export default {
  name: 'My',
  components: {
    leftNav
  },
  data () {
    return {
    }
  },
  created() {
    console.log(this.$route)
    // if(this.$route.query.type === 'login'){
    //   // location.reload();
    //   init();
    // }
  },
  mounted () {
    this.setHasNav(false)
  },
  activated() {
    this.setHasNav(false)
  },
  methods: {
    ...mapMutations({
      setHasNav: 'app/SET_PAGE_HAS_NAV'
    })
  }
}
</script>

<style lang="scss" scoped>
.user_container {
  min-width: 1200px;
  background: #f5f5f5;
  padding: 40px 0;
  margin-bottom: -40px;
  .container {
  width: 1200px;
  margin: 0 auto;
  z-index: 0;
  }
  .clearfix {
    zoom: 1;
  }
  .user_right {
    width: 950px;
    background: #fff
  }
}
.lf_nav{
  margin-bottom: 30px;
}

</style>
